package com.hzdl.flower.mapper;

import com.hzdl.flower.bean.Flower;
import com.hzdl.flower.vo.FlowerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FlowerMapper {

    List<Flower> findFlower(FlowerVo flowerVo);

    List<Flower> findNew(FlowerVo flowerVo);

    List<Flower> findhot(FlowerVo flowerVo);

    Flower findById(FlowerVo flowerVo);

    int countAll(FlowerVo flowerVo);

    List<Flower> findPageFlower(Map<String, Object> map);

    List<Flower> findByTypeAndColor(@Param("type")Integer type, @Param("color")String color  );

}
